extern crate whatlang;

use whatlang::{detect, Lang, Script};

pub fn lang_test() {
    let text = "我和我的祖国！";

    let info = detect(text).unwrap();
    println!("lang={},script={}", info.lang(), info.script());
}